<template>
    <div class="layout-container">
        <div class="left">
            <div class="logo">
                <div class="a">
                    <img :src="logo" alt="">
                    <h1>大宗交易平台</h1>
                </div>
            </div>
            <Menu></Menu>
        </div>
        <div class="right">
            <div class="header">
                <Header></Header>
            </div>
            <el-scrollbar>
                <div class="main">
                    <router-view></router-view>
                </div>
            </el-scrollbar>

        </div>
    </div>
</template>

<script>
import logo from "@/assets/logo.png";
import Menu from "./Menu.vue";
import Header from "./Header.vue"
export default {
    components: {
        Menu,
        Header
    },
    setup() {
        return {

        }
    },
    data() {
        return {
            logo
        }
    },


}
</script>

<style lang="less" scoped>
.layout-container {
    width: 100vw;
    height: 100vh;
    display: flex;
}

.a {
    display: flex;
    align-items: center;
}

.left {
    width: 250px;
    height: 100vh;
    // background-color: #141414;
    border-right: 1px solid var(--el-menu-border-color);

    .logo {
        display: flex;
        align-items: center;
        justify-content: center;

        img {
            width: 50px;
            height: 50px;
            display: block;
            margin-right: 5px;
        }

        h1 {
            color: #141414;
            font-weight: 400;
            flex: 1;
            font-size: 27px;
        }
    }


}

.right {
    flex: 1;
    background-color: #fff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.main {
    width: 100%;
    flex: 1;
    overflow: hidden auto;
    padding: 50px;
    box-sizing: border-box;
}
</style>